package org.javaforever.cookieshop.service;

import java.util.List;
import org.javaforever.cookieshop.domain.TypeBean;

public interface TypeService{
	public List<TypeBean> listAllTypes() throws Exception;
	public Boolean updateType(TypeBean type) throws Exception;
	public Boolean deleteType(Long id) throws Exception;
	public Boolean addType(TypeBean type) throws Exception;
	public boolean softDeleteType(Long id) throws Exception;
	public TypeBean findTypeById(Long id) throws Exception;
	public TypeBean findTypeByName(String name) throws Exception;
	public List<TypeBean> listActiveTypes() throws Exception;
	public void deleteAllTypes(String ids) throws Exception;
	public void softDeleteAllTypes(String ids) throws Exception;
	public Boolean toggleType(Long id) throws Exception;
	public Boolean toggleOneType(Long id) throws Exception;
	public List<TypeBean> searchTypesByFieldsByPage(TypeBean type,Integer pagesize,Integer pagenum) throws Exception;
	public Boolean activateType(Long id) throws Exception;
	public void activateAllTypes(String ids) throws Exception;
	public List<TypeBean> searchTypesByFields(TypeBean type) throws Exception;
	public Boolean cloneType(Long id) throws Exception;
	public void cloneAllTypes(String ids) throws Exception;
	public Integer countSearchTypesByFieldsRecords(TypeBean type) throws Exception;
	public Integer countActiveTypeRecords() throws Exception;
}
